home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Frame View ID Voodoo < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Frame View ID Voodoo
  2. Sent:        6/25/96 11:04 AM
  3. Received:    6/25/96 11:23 AM
  4. From:        John Casey, jcasey@ncs-ssc.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Is there a reason why the frame's view ID is set to the presentation type 
  9. by default?  I had a strange bug that occurred when I attempted to 
  10. FindViewById for one of my frame's subviews.  In this "random" case, my 
  11. frame ID ended up being the same as one of my views.  I fixed the problem 
  12. by manually setting my frame's view ID in my frame's constructor.  
  13. However, I am still a little confused by the logic behind setting the 
  14. frame's view ID to this fairly "random" value.
  15.  
  16. It would appear to make more sense to set the frame's default view ID to 
  17. zero.  An even better solution would be to add a field in the frame 
  18. layout resource for the frame's view ID.
  19.  
  20. Am I missing something here?  Is there a reason that the frame's view ID 
  21. is set to the presentation type?
  22.  
  23.  
  24. ========================================================================
  25. John Casey                         email: jcasey@ncs-ssc.com
  26. Vice President                     web:   http://www.ncs-ssc.com
  27. Nation Computer Services           voice: (804) 378-8917
  28.                                    fax:   (601) 689-8130
  29. ========================================================================
  30.